package cn.w2cs.controller;

import cn.w2cs.common.api.ApiResult;
import cn.w2cs.model.entity.BmsBillboard;
import cn.w2cs.model.entity.BmsTip;
import cn.w2cs.service.IBmsBillboardService;
import cn.w2cs.service.IBmsTipService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ：LY
 * @date ：Created in 2021/4/9 17:53
 * @modified By：
 */
@RestController
@RequestMapping("/tip")
public class BmsTipController extends BaseController {

    @Resource
    private IBmsTipService bmsTipService;

    @GetMapping("/today")
    public ApiResult<BmsTip> getNotices(){
        return ApiResult.success(bmsTipService.getRandomTip());
    }

}
